package com.zrrd.learn.chapter08面向对象.pattern.proxy;

/**
 * 律师
 * 叫静态代理
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/4 8:58
 */

public class LawyerProxy implements Sayinterface {

    private Defendant d;

    public LawyerProxy(Defendant defendant) {
        this.d = defendant;
    }

    @Override
    public void say() {
        d.say();
        d.say();
        System.out.println("从现在开始你一切要听我的");
        System.out.println("你要这样.......");
    }
}


